package example1;

/**
 * <h3>designPattern</h3>
 * <p>抽象装饰类</p>
 * @author : zhang.bw
 * @date : 2021-02-26 15:43
 **/
public abstract class AbstractDecorator extends ABattercake {
	private ABattercake aBattercake;

	public AbstractDecorator(ABattercake aBattercake) {
		this.aBattercake = aBattercake;
	}

	protected abstract void doSomething();

	@Override
	protected String getDesc() {
		return this.aBattercake.getDesc();
	}
	@Override
	protected int cost() {
		return this.aBattercake.cost();
	}
}
